package com.abc.scholarship.mapper;


import com.abc.scholarship.domain.entity.Scholarship;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 奖学金表 Mapper 接口
 * </p>
 *
 * @author jzw
 * @since 2024-07-02
 */
public interface ScholarshipMapper extends BaseMapper<Scholarship> {

    void setStatusByIds(List<Long> idList, Integer status);

    @Select("select sum(ratio) from tb_scholarship")
    Integer getSumRatio();
}
